package com.he.principles.DIP.after;

/**
 * @description: TODO
 * @Author: HCL
 * @Date: 2024/8/22 14:20
 */
public class ComputerAfterTest {

    //依赖倒置原则，也符合开闭原则
    public static void main(String[] args) {
        ComputerAfter computerAfter = ComputerAfter.builder()
//                .hardDiskService(new XiJieHardDiskImpl())
                .hardDiskService(new HardDiskServiceImpl())
                .cpuService(new CpuServiceImpl())
                .memoryService(new MemoryServiceImpl())
                .build();
        computerAfter.run();
    }
}
